// 放置全局指令
import store from '@/store'
import Vue from 'vue'

Vue.directive('auth-btn', {
  inserted(el, building) {
    console.log(el, building, '22222')
    const perms = store.state.user.profile.permissions
    const btnPerms = building.value
    console.log(perms, 'permsperms')
    if (!perms.includes(btnPerms)) {
      el.remove()
    }
  }
})

